<div class="card-block dt-responsive">

    <div class="table-responsive">
        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <g:sortableColumn property="createBy" title="修改者"/>
                    <g:sortableColumn property="createdDate" title="修改日期"/>
                    <g:sortableColumn property="account" title="客户"></g:sortableColumn>
                    <g:sortableColumn property="stage" title="阶段"/>
                    <g:sortableColumn property="status" title="状态"></g:sortableColumn>
                    <g:sortableColumn property="product" title="产品"></g:sortableColumn>
                    <g:sortableColumn property="purchasingMethod" title="采购方法"></g:sortableColumn>
                    <g:sortableColumn property="amount" title="金额"/>
                    <g:sortableColumn property="user" title="负责人"></g:sortableColumn>
                </tr>
                </thead>
                <tbody>
                <g:each in="${opportunityHistoryList}">
                    <tr>
                        <td>${it?.createBy}</td>
                        <td><g:formatDate date="${it?.createdDate}"
                                          format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                        <td>${it?.account}</td>
                        <td>${it?.stage}</td>
                        <td>${it?.status}</td>
                        <td>${it?.product}</td>
                        <td>${it?.purchasingMethod}</td>
                        <td>${it?.amount}</td>
                        <td>${it?.user}</td>
                    </tr>
                </g:each>
                </tbody>

            </table>
        </div>
    </div>

</div>

